/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('info_ans', {
    id: {
      type: DataTypes.INTEGER(10),
      allowNull: false,
      primaryKey: true,
      autoIncrement:true
    },
    class: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    name: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ans1: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ans2: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ans3: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ans4: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ans5: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ans6: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    total_time: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    create_time: {
      type: DataTypes.DATE,
      allowNull: true,
      defaultValue: DataTypes.literal('CURRENT_TIMESTAMP')
    },
    update_time: {
      type: DataTypes.DATE,
      allowNull: true,
      defaultValue: DataTypes.literal('CURRENT_TIMESTAMP')
    }
  }, {
    tableName: 'info_ans'
  });

  Model.associate = function() {

  }

  return Model;
};
